﻿using System;
using System.Collections.Generic;
using System.Text;
using FlexminAPI;
using System.Windows.Forms;
using System.Threading;
using System.Reflection;

namespace RemoteMessage
{
	public class MessageSlave : ISlave
	{
		public void ShowMessage(string msg)
		{
			Thread msgThread = new Thread(new ParameterizedThreadStart(MessageThread));
			msgThread.Start(msg);
		}

		public void MessageThread(object msg)
		{
			FlyingForm ff = new FlyingForm(msg.ToString());
			ff.ShowDialog();
		}
	}
}
